home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Developer Essentials / MPW Interfaces & Libraries / CIncludes / Notification.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-01-29  |  1.2 KB  |  64 lines  |  [TEXT/MPS ]

  1.  
  2. /************************************************************
  3.  
  4. Created: Friday, September 13, 1991 at 1:04 PM
  5.  Notification.h
  6.  C Interface to the Macintosh Libraries
  7.  
  8.  
  9.   Copyright Apple Computer, Inc. 1989-1991
  10.   All rights reserved
  11.  
  12. ************************************************************/
  13.  
  14.  
  15. #ifndef __NOTIFICATION__
  16. #define __NOTIFICATION__
  17.  
  18. #ifndef __TYPES__
  19. #include <Types.h>
  20. #endif
  21.  
  22. #ifndef __OSUTILS__
  23. #include <OSUtils.h>
  24. #endif
  25.  
  26.  
  27. enum {
  28.  
  29.  nmType = 8
  30. };
  31.  
  32. typedef pascal void (*NMProcPtr)(struct NMRec *);
  33.  
  34. struct NMRec {
  35.  QElemPtr qLink;    /*next queue entry*/
  36.  short qType;        /*queue type -- ORD(nmType) = 8*/
  37.  short nmFlags;        /*reserved*/
  38.  long nmPrivate;    /*reserved*/
  39.  short nmReserved;    /*reserved*/
  40.  short nmMark;        /*item to mark in Apple menu*/
  41.  Handle nmIcon;        /*handle to small icon*/
  42.  Handle nmSound;    /*handle to sound record*/
  43.  StringPtr nmStr;    /*string to appear in alert*/
  44.  NMProcPtr nmResp;    /*pointer to response routine*/
  45.  long nmRefCon;        /*for application use*/
  46. };
  47.  
  48. typedef struct NMRec NMRec;
  49. typedef NMRec *NMRecPtr;
  50.  
  51.  
  52. #ifdef __cplusplus
  53. extern "C" {
  54. #endif
  55. pascal OSErr NMInstall(NMRecPtr nmReqPtr)
  56.  = {0x205F,0xA05E,0x3E80}; 
  57. pascal OSErr NMRemove(NMRecPtr nmReqPtr)
  58.  = {0x205F,0xA05F,0x3E80}; 
  59. #ifdef __cplusplus
  60. }
  61. #endif
  62.  
  63. #endif
  64.